package com.ihg.hiex.admin.web.controller.session.during;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.demo2do.core.web.interceptor.MenuSetting;
import com.ihg.hiex.admin.entity.security.Login;
import com.ihg.hiex.admin.web.resolver.Secure;

/**
 * 
 * @author dan
 *
 */
@Controller
@RequestMapping("/sessions/{sessionId}/pdp-writing")
@MenuSetting("menu-sessions")
public class PdpWritingController {
    
    /**
     * 
     * @param login
     * @param sessionId
     * @return
     */
    @MenuSetting(value = "submenu-session-during-day-two")
    @RequestMapping(path = "", method = RequestMethod.GET)
    public ModelAndView dayOneList(@Secure Login login,
                                   @PathVariable("sessionId") Long sessionId) {
        
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("type", "pdp-writing");
        
        modelAndView.setViewName("session/during/pdp-writing/pdp-writing-admin-list");
        
        modelAndView.addObject("id", sessionId);
        
        return modelAndView;
    }
    
}
